package com.ai.fupincore.util;

import java.util.Comparator;

/**
 * Created with IntelliJ IDEA.
 * User: gary
 * Date: 13-12-28
 * Time: 上午2:55
 * To change this template use File | Settings | File Templates.
 */
@SuppressWarnings("rawtypes")
public class TempRstObject implements Comparator {
    private Object object;
    private Long order;

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }


    public Long getOrder() {
		return order;
	}

	public void setOrder(Long order) {
		this.order = order;
	}

	public int compare(Object o1, Object o2) {
        TempRstObject b1=(TempRstObject)o1;
        TempRstObject b2=(TempRstObject)o2;
        return b1.order.compareTo(b2.order);
    }
}
